
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Mario
 */
public class conexionServicios {

     public static Connection getConexion() throws SQLException{
        try{
            Class.forName("com.mysql.jdbc.Driver");
            System.out.println("Conectando a la base de datos Servicios");
            return DriverManager.getConnection("jdbc:mysql://localhost/cco", "root", "koka1kola");
        }
        catch (ClassNotFoundException e){
            throw new SQLException(e.getMessage());            
        }
    }
}
